import request from '../request'

export const loginApi = (data: API.LoginParams) => {
  return request<API.LoginResponse>({
    url: '/api/login',
    method: 'post',
    data
  })
}